<{include file="header.html"}>
<{include file="top.html"}>
<div class="h_980 clearfix">
            <div class="FosfMain">
            <div class="page_dh"><a class="location-home" href="<{spUrl c=main a=index}>"></a> <span><a href="<{spUrl c=main a=Account}>"><{T w='My Account'}></a></span></div> 
            <div id="accountDefault" class="clear">
            <{if $orderlist}>
            <p class="forward"><a href="<{spUrl c=main a=AccountHistory}>"><{T w='(show all orders)'}></a></p>
            <table border="0" cellpadding="1" cellspacing="1" id="prevOrders">
            <caption><h2><{T w='Previous Orders'}></h2></caption>
                <tr class="tableHeading">
                <th scope="col"><{T w='Date'}></th>
                <th scope="col"><{T w='No.'}></th>
                <th scope="col"><{T w='Ship To'}></th>
                <th scope="col"><{T w='Status'}></th>
                <th scope="col"><{T w='Total'}></th>
                <th scope="col"><{T w='View'}></th>
              </tr>
            <{foreach item=item name=name from=$orderlist}>   
              <tr>
                <td width="70" align="center"><{$item.date_purchased|date_format:'%m/%d/%Y'}></td>
                <td width="150" align="center"><{$item.orders_sn}></td>
                <td><address><{$item.customers_name}><br /><{$item.customers_country}></address></td>
                <td width="70" align="center"><{$item.orders_status}></td>
                <td width="70" align="center"><{$item.currency_left}><{$item.shipping_method*$item.currency_value+$item.order_total-$item.order_discount}></td>
                <td align="center"><a href="<{spUrl c=main a=AccountHistoryInfo}>?order_id=<{$item.orders_id}>"> <img src="<{$smarty.const.BASEPATH}>/css/img/button_view.gif" alt="<{T w='View'}>" title=" <{T w='View'}> " /></a></td>
              </tr>
            <{/foreach}> 
            
            </table>
            <br class="clear" />
            <{/if}> 
            <div id="accountLinksWrapper" class="back">
            <h2> <{T w='My Account'}></h2>
            <ul id="myAccountGen" class="list">
            <li> <a href="<{spUrl c=main a=AccountEdit}>"><{T w='View or change my account information.'}></a></li>
            <li> <a href="<{spUrl c=main a=AddressBook}>"><{T w='View or change entries in my address book.'}></a></li>
            <li> <a href="<{spUrl c=main a=AccountPassword}>"><{T w='Change my account password.'}></a></li>
            </ul>
            
            
            </div>
            
            <br class="clear" />
            </div>
            </div>
        
</div>  
<{include file="footer.html"}>
</body>
</html>